from extensions.common.base import *
from extensions.serializers import *
from extensions.exceptions import *
from apps.system.models import *
# from apps.goods.models import *
# from apps.purchase.models import *
# from apps.sales.models import *


# System
class RoleOptionSerializer(ModelSerializer):

    class Meta:
        model = Role
        fields = ['id', 'name']


class UserOptionSerializer(ModelSerializer):

    class Meta:
        model = User
        fields = ['id', 'username', 'name', 'is_active']


class OptionsSerializer(ModelSerializer):

    class Meta:
        fields = ['id', 'name']



__all__ = [
    'RoleOptionSerializer', 'UserOptionSerializer',
]
